package com.filetransfer.view.Components.render;
import javax.swing.*;
import javax.swing.table.TableCellEditor;
import java.awt.*;
public class LocalPathEditor extends AbstractCellEditor implements TableCellEditor {
    private final LocalPathRender render = new LocalPathRender();
    private Object value;
    @Override
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
        this.value = value;
        return render.getTableCellRendererComponent(table, value, isSelected, true, row, column);
    }
    @Override
    public Object getCellEditorValue() {
        return this.value;
    }
}
